import { useAxios } from '@/hooks/web/useAxios'
const request = useAxios()
import { useCache } from '@/hooks/web/useCache'
const { wsCache } = useCache()

// 疫苗列表
export const zcVaccineListApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'zcVaccineList',
      data: data
    }
  })
}

// 新增
export const zcVaccineAddAdminApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'zcVaccineAddAdmin',
      data: data
    }
  })
}

// 修改
export const zcVaccineEditApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'zcVaccineEdit',
      data: data
    }
  })
}

// 查看
export const zcVaccineSeeApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'zcVaccineSee',
      data: data
    }
  })
}

// 删除
export const zcVaccineDelApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'zcVaccineDel',
      data: data
    }
  })
}

// 归档
export const zcVaccineEndApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'zcVaccineEnd',
      data: data
    }
  })
}

// 资产明细
export const zcVaccineDetailedListApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'zcVaccineDetailedList',
      data: data
    }
  })
}

// 药品明细
export const zcVaccineDrugDetailedListApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'zcVaccineDrugDetailedList',
      data: data
    }
  })
}
